<?php

use yii\helpers\Html;
use yii\widgets\ListView;
use yii\helpers\Url;

$this->title = 'My Yii Application';
?>
<div class="site-index">
    <h1><?php echo $type['tagName']. ' &gt; '. $novel['novelName']?></h1>
    <div class="container">
        <?php foreach((array)$data as $k => $chapter){?>
        <div class="col-md-4">
            <a href="<?=Url::toRoute(['novel/chapter', 'id' => $chapter['id'], 'tagId' => $type['tagId'], 'novelId' => $novel['novelId']])?>">
                <div class="novel-title"><?php echo $chapter['title']?></div>
            </a>
        </div>
        <?php }?>
    </div>
</div>
